home *** CD-ROM | disk | FTP | other *** search
- #==========================================================
- # Makefile for Win DLLs under Microsoft C 6.0
- # Copyright (c) 1993 Douglas Boling
- #==========================================================
- #----------------------------------------------------------
- # Target filename
- #----------------------------------------------------------
- NAME = wclib
-
- #----------------------------------------------------------
- # Define DEBUG = 1 to add debug info to EXE
- #----------------------------------------------------------
- DEBUG = 0
-
- #----------------------------------------------------------
- # C compiler switches
- #
- # -c Compile, no link
- # -ASw Small model, SS != DS
- # -Gsw No Stack check, Compile for Windows
- # -Ow Optimize. Assume no aliases
- # -W3 Print warnings to level 3
- # -Zp Pack Structures or...
- # -Zpi If Debug info needed
- # -Od Disable Optimization
- #----------------------------------------------------------
- !if $(DEBUG)
- CSWITCH = -c -ASw -Gsw -Ow -W3 -Zpi -Od
- !else
- CSWITCH = -c -ASw -Gsw -Ow -W3 -Zp
- !endif
-
- #----------------------------------------------------------
- # Link Switches
- #
- # /Align:16 Align segments on 16 byte boundries
- # /CO If debug info needed
- #----------------------------------------------------------
- !if $(DEBUG)
- LSWITCH = /CO /align:16
- !else
- LSWITCH = /align:16
- !endif
-
- #----------------------------------------------------------
- # Lib files
- #
- # /nod No defaults
- # sdllcew Small model lib for Windows DLLs
- # libw Windows API lib
- # commdlg Windows Common Dialog Box lib
- # shell Windows Shell API
- # mmsystem Windows multimedia lib
- #----------------------------------------------------------
- LIBS = /nod sdllcew libw commdlg mmsystem shell
-
- #----------------------------------------------------------
- # Make DLL
- #----------------------------------------------------------
- $(NAME).wcl : $(NAME).obj $(NAME).def $(NAME).res
- link $(LSWITCH) $(NAME) libentry, $(NAME).dll, NUL, $(LIBS), $(NAME)
- rc $(NAME).res $(NAME).dll
- copy $(NAME).dll $(NAME).wcl
-
- $(NAME).obj : $(NAME).c $(NAME).h
- cl $(CSWITCH) $(NAME).c
-
- $(NAME).res : $(NAME).rc $(NAME).h $(NAME).ico
- rc -r $(NAME).rc
-
-
-
-